<h2>Are you want to delete this comment?</h2>
<form name="frmDel" id="frmDel" method="POST"
		action="<?php echo $this->url(array('controller'=>'comment', 'action'=>'delete'));?>">
<input type="button" value="Delete" onclick="del()"></input> &nbsp; &nbsp; &nbsp;
<input type="button" value="Cancel" onclick="cancel()"></input>
<input type="hidden" value="<?php if(isset($this->id)) echo $this->id; ?>" name="id"></input>
</form>
<script type="text/javascript">
function del(){
	$("#frmDel").ajaxForm({
		success: function(data){
			if (data == "1") {
				loadPage(gobal_page);
				parent.$.colorbox.close();
			} else {
				alert(data);
			}
		}
	}).submit();
}

function cancel(){
	parent.$.colorbox.close();
    return false;
}
</script>